.class public Lcom/xiaomi/notes/NoteMoreActivity;
.super Landroid/app/Activity;
.source "NoteMoreActivity.java"


# static fields
.field public static context:Lcom/xiaomi/notes/NoteMoreActivity;


# instance fields
.field private barLoad:Landroid/widget/ProgressBar;

.field private webView:Landroid/webkit/WebView;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 13
    const/4 v0, 0x0

    sput-object v0, Lcom/xiaomi/notes/NoteMoreActivity;->context:Lcom/xiaomi/notes/NoteMoreActivity;

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 12
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 15
    iput-object v0, p0, Lcom/xiaomi/notes/NoteMoreActivity;->webView:Landroid/webkit/WebView;

    .line 17
    iput-object v0, p0, Lcom/xiaomi/notes/NoteMoreActivity;->barLoad:Landroid/widget/ProgressBar;

    return-void
.end method

.method static synthetic access$000(Lcom/xiaomi/notes/NoteMoreActivity;)Landroid/webkit/WebView;
    .locals 1
    .parameter "x0"

    .prologue
    .line 12
    iget-object v0, p0, Lcom/xiaomi/notes/NoteMoreActivity;->webView:Landroid/webkit/WebView;

    return-object v0
.end method

.method static synthetic access$100(Lcom/xiaomi/notes/NoteMoreActivity;)Landroid/widget/ProgressBar;
    .locals 1
    .parameter "x0"

    .prologue
    .line 12
    iget-object v0, p0, Lcom/xiaomi/notes/NoteMoreActivity;->barLoad:Landroid/widget/ProgressBar;

    return-object v0
.end method

.method private init()V
    .locals 3

    .prologue
    .line 30
    const v1, 0x7f070043

    invoke-virtual {p0, v1}, Lcom/xiaomi/notes/NoteMoreActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/webkit/WebView;

    iput-object v1, p0, Lcom/xiaomi/notes/NoteMoreActivity;->webView:Landroid/webkit/WebView;

    .line 31
    iget-object v1, p0, Lcom/xiaomi/notes/NoteMoreActivity;->webView:Landroid/webkit/WebView;

    const-string v2, "http://xshare.api.xiaomi.com/rso/cooperate/commend/index.htm"

    invoke-virtual {v1, v2}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    .line 32
    iget-object v1, p0, Lcom/xiaomi/notes/NoteMoreActivity;->webView:Landroid/webkit/WebView;

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/webkit/WebView;->setVisibility(I)V

    .line 34
    const v1, 0x7f070044

    invoke-virtual {p0, v1}, Lcom/xiaomi/notes/NoteMoreActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ProgressBar;

    iput-object v1, p0, Lcom/xiaomi/notes/NoteMoreActivity;->barLoad:Landroid/widget/ProgressBar;

    .line 35
    iget-object v1, p0, Lcom/xiaomi/notes/NoteMoreActivity;->barLoad:Landroid/widget/ProgressBar;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/widget/ProgressBar;->setVisibility(I)V

    .line 37
    iget-object v1, p0, Lcom/xiaomi/notes/NoteMoreActivity;->webView:Landroid/webkit/WebView;

    invoke-virtual {v1}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v0

    .line 38
    .local v0, ws:Landroid/webkit/WebSettings;
    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    .line 40
    iget-object v1, p0, Lcom/xiaomi/notes/NoteMoreActivity;->webView:Landroid/webkit/WebView;

    new-instance v2, Lcom/xiaomi/notes/NoteMoreActivity$1;

    invoke-direct {v2, p0}, Lcom/xiaomi/notes/NoteMoreActivity$1;-><init>(Lcom/xiaomi/notes/NoteMoreActivity;)V

    invoke-virtual {v1, v2}, Landroid/webkit/WebView;->setWebChromeClient(Landroid/webkit/WebChromeClient;)V

    .line 52
    return-void
.end method


# virtual methods
.method public onCreate(Landroid/os/Bundle;)V
    .locals 1
    .parameter "savedInstanceState"

    .prologue
    .line 21
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 23
    sput-object p0, Lcom/xiaomi/notes/NoteMoreActivity;->context:Lcom/xiaomi/notes/NoteMoreActivity;

    .line 24
    const v0, 0x7f03000b

    invoke-virtual {p0, v0}, Lcom/xiaomi/notes/NoteMoreActivity;->setContentView(I)V

    .line 26
    invoke-direct {p0}, Lcom/xiaomi/notes/NoteMoreActivity;->init()V

    .line 27
    return-void
.end method
